<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <%


        //获取项目的根路径
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    %>
    <link href="<%=basePath%>doctor/base.css" rel="stylesheet">

    <link href="<%=basePath%>doctor/hospital.css" rel="stylesheet">


    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>湖南省长沙市华子医院</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="shortcut icon" href="#"/>
    <link rel="stylesheet" href="<%=basePath%>layui-v2.6.5/layui/css/layui.css">

    <%--    郭梓浩--%>
    <%--    <link rel="stylesheet" href="doctor/css/doctor.css">--%>
    <%--    <script src="doctor/js/jquery-1.12.4.js"></script>--%>
    <%--    <script src="doctor/js/doctor.js" type="text/javascript"></script>--%>

    <%--    <link rel="stylesheet" href="layui-v2.6.5/layui/css/modules/code.css">--%>
    <script src="<%=basePath%>layui-v2.6.5/layui/layui.js"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo" style="color: white">湖南省长沙市华子医院</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="javascript:void(0)">医院详情</a></li>
            <li class="layui-nav-item"><a href="javascript:void(0)">医院简介</a></li>
            <li class="layui-nav-item"><a href="javascript:void(0)">医院地址</a></li>
            <li class="layui-nav-item">
                <a href="javascript:void(0);">nav groups</a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:void(0)">menu 11</a></dd>
                    <dd><a href="javascript:void(0)">menu 22</a></dd>
                    <dd><a href="javascript:void(0)">menu 33</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg"
                         class="layui-nav-img">
                    ${sessionScope.doctor.doctorName}
                    <%
                        session.setAttribute("doctorname", "汪渣渣");
                    %>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:void(0)">请假申请</a></dd>
                    <dd><a href="javascript:void(0)">个人信息</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="docdorLogin/login.jsp">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">

                <c:if test="${doctor.position eq 'root'}">
                    <li class="layui-nav-item">
                        <a href="doctor/menu.html" target="content">主界面</a>
                    </li>

                    <li class="layui-nav-item">
                        <a href="frontdesk/reception.jsp" target="content">前台</a>
                            <%--                    <dl class="layui-nav-child">--%>
                            <%--                        <dd><a href="javascript:;">开卡</a></dd>--%>
                            <%--                        <dd><a href="javascript:;">导诊</a></dd>--%>
                            <%--                        <dd><a href="javascript:;">转诊</a></dd>--%>
                            <%--                        <dd><a href="javascript:;">缴费</a></dd>--%>
                            <%--                    </dl>--%>
                    </li>

                    <li class="layui-nav-item"><a href="DrugServlet" target="content">药房管理</a></li>
                    <li class="layui-nav-item"><a href="drugzt/medicate.html" target="content">库房管理</a></li>
                    <li class="layui-nav-item"><a href="mendicne" target="content">申请管理</a></li>
                    <li class="layui-nav-item"><a href="DoctorServlett" target="content">人员管理</a></li>
                    <li class="layui-nav-item"><a href="TotalbillServlet" target="content">账单统计</a></li>
                    <li class="layui-nav-item"><a href="javascript:void(0);">系统设置</a></li>

                </c:if>

                <c:if test="${doctor.position ne 'root'}">
                    <li class="layui-nav-item">
                        <a href="doctor/menu.html" target="content">主界面</a>
                    </li>

                    <li class="layui-nav-item layui-nav-itemed">
                        <a href="queue?doctorid=${sessionScope.doctor.doctorId}&doctorname=${sessionScope.doctor.doctorName}" target="content">医生诊断</a>
                            <%--                    <dl class="layui-nav-child">--%>
                            <%--                        <dd><a href="javascript:;">候诊列表</a></dd>--%>
                            <%--                        <dd><a href="javascript:;">患者信息</a></dd>--%>
                            <%--                        <dd><a href="javascript:;">开药记录</a></dd>--%>
                            <%--                        <dd><a href="">the links</a></dd>--%>
                            <%--                    </dl>--%>
                    </li>

                    <li class="layui-nav-item">
                        <a href="DepartmentServlet" target="content">科室管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="ChaCtServlet" target="content">CT记录查询</a></dd>
                        </dl>
                    </li>

                    <li class="layui-nav-item"><a href="javascript:void(0);">系统设置</a></li>

                </c:if>

            </ul>

        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->

        <div style="padding: 15px;">
            <iframe src="doctor/menu.html" width="100%" height="700px"
                    style="border: none;background-color: white" name="content">
            </iframe>
        </div>

    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        底部固定区域
    </div>
</div>

<%--<script src="./layui/layui.js"></script>--%>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;
    });
</script>
</body>
</html>